package com.dhcc.bpm.modules.api.service.impl;

import com.dhcc.bpm.modules.api.entity.PolicyItem;
import com.dhcc.bpm.modules.api.mapper.PolicyItemMapper;
import com.dhcc.bpm.modules.api.service.IPolicyItemService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Title
 * @ClassName IPolicyServiceImpl
 * @Desription
 * @Author zhangzexu
 * @Date 2020/10/9 15:13
 * @Version V1.0
 */
@Service("opc_policy_item")
public class PolicyItemServiceImpl extends BaseServiceImpl<PolicyItemMapper, PolicyItem> implements IPolicyItemService {

    @Autowired
    PolicyItemMapper policyItemMapper;

    @Override
   public boolean updatePolicyItem (PolicyItem policyItem) {
      return   policyItemMapper.updatePolicyItem(policyItem);
    }

    @Override
    public boolean updateDeletePolicyItem (PolicyItem policyItem) {
        return   policyItemMapper.updateDeletePolicyItem(policyItem);
    }
    @Override
    public boolean deletePolicyItem (Long policyItemId) {
        return   policyItemMapper.deletePolicyItem(policyItemId);
    }
    @Override
    public boolean deletePolicyItemTagId (Long policyTagId) {
        return   policyItemMapper.deletePolicyItemTagId(policyTagId);
    }
    @Override
    public boolean updatePolicyItemAll (PolicyItem policyItem) {
        return   policyItemMapper.updatePolicyItemAll(policyItem);
    }

    @Override
    public List<PolicyItem> selectByParentId(PolicyItem policyItem) {
        return policyItemMapper.selectByParentId(policyItem);
    }
}
